<div class="container">
	<ol class="breadcrumb">
		<li><?php echo anchor('', 'Início'); ?></li>
		<li><?php echo anchor('paravoce', 'Para Você'); ?></li>
		<li class="active">Acessar</li>
	</ol>
</div>

<div class="container">
  <div class="row">
		<div class="col-lg-4 col-md-4">
			<h3 class="titulos">Já sou cadastrado</h3>
			
			<?php 
				$hidden     = array('datetime' => date('Ymdhmi'));
				$attributes = array("role"=>"form");
				
				if(strpos(current_url(), '/retornar/') !== FALSE){
					echo form_open(str_replace('/acessar/', '/login/', current_url()), $attributes, $hidden); 
				}else{
					echo form_open('paravoce/home/login', $attributes, $hidden); 	
				}

				if(!empty($formMessage)){
					$cssOptions = array('alert-danger', 'alert-warning', 'alert-success');
					$cssAlert = $cssOptions[$formMessage[0]-1];
			?>

			<div class="alert <?php echo $cssAlert; ?>">
				<?php echo $formMessage[1]; ?>
			</div>
			<?php
				}
			?>

			<div class="form-group">
				<div><label for="email_cliente" class="control-label">Email</label></div>
				<?php echo form_input(array('name'=>'email_cliente','id'=>'email_cliente','class'=>'form-control','value'=>isset($formdata['email_cliente']) ? $formdata['email_cliente'] : '','placeholder'=>'Email')); ?>
			</div>

			<div class="form-group">
				<div><label for="senha_cliente" class="control-label">Senha</label></div>
				<div>
					<?php echo form_password(array('name'=>'senha_cliente','id'=>'senha_cliente','class'=>'form-control','value'=>isset($formdata['senha_cliente']) ? $formdata['senha_cliente'] : '','placeholder'=>'Senha')); ?>
				</div>
			</div>

			<div class="form-group">
        <?php 
          $data = array(
              'class'=> 'btn btn-primary pull-right',
              'name' => 'button',
              'id' => 'btn_acessar',
              'value' => 'Entrar',
              'type' => 'submit',
              'content' => 'Entrar' 
          );
          echo form_button($data);
        ?>				
				<div class="clearfix"></div>
			</div>

			<div class="form-group">
				<div class="pull-right">
					<!--?php echo anchor('paravoce/home/esqueciminhasenha', 'esqueci minha senha'); ?-->
				</div>
				<div class="clearfix"></div>
			</div>

			<?php echo form_close(); ?>
		</div>

		<div class="col-lg-offset-1 col-lg-7 col-md-offset-1 col-md-7">

			<h3 class="titulos">Quero me cadastrar</h3>

			<?php echo form_open('paravoce/home/cadastro'); ?>
		
			<div class="well">
				<div class="row">
					<div class="col-lg-8 col-md-8">
						<input type="text" class="form-control" id="email_cliente" name="email_cliente" placeholder="Informe seu e-mail">
					</div>
					<div class="col-lg-4 col-md-4">
						<button type="submit" class="btn btn-primary">Completar cadastro &raquo;</button>
					</div>
				</div>

				<?php echo form_close(); ?>
			</div>

			<div>
				<p>Ainda não comprou em nosso site?</p>
				O UniveroDelivery facilita sua vida. Veja algumas vantagens:
				<ul>
					<li>Atendimento 24 horas</li>
					<li>Pedidos sem erros</li>
					<li>Comida rapidinho!</li>
				</ul>
			</div>

		</div>

	</div>
</div>